import 'package:get_storage/get_storage.dart';

class DBService {
  static final box = GetStorage();

  static Future<T?> getData<T>(DBKey key) async {
    return box.read(key.name);
  }

  static saveData(DBKey key, value) async {
    await box.write(key.name, value);
  }
}

enum DBKey {
  userSignInStatus,
  userSignInRememberMe,
  userSignInAccount,
  userSignInPassword,

  userId,
  userToken,
  userPhone,
}
